home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Environments / PowerFantasm™ 4.19a / Beginners guide / Beginners Mac Assembly - ed.srd / Beginners Mac Assembly - ed.srd.rsrc / PICT_51.png < prev    next >
Portable Network Graphic  |  1996-08-28  |  126KB  |  816x1056  |  8-bit (256 colors)
OCR: DIAuX AMBLE: Beginners Guide To Macintosh Assembly Language Programming age **INIT MAC** LEA QDGL OB A0 QUICKDRAW WORK SPACE LEA 202(A0) A0 MOVE Ao. SP ODGLOB 202) DC W INITGR AF INITGRA APHICS DC W INITFONTS MOV VEO #-1.D0 DC FLUSHEVENTS DC INITWINDOWS DC INITMENUS CLR SP DC INITDIALOGS DC TEINIT INIT TEXT EDITOR DC 1 INITCURSOR **END OF MAC NT This first section S concerned with initialising the Mac. The first trap initialises the graphics It needs the address of an array that will be used internally by the Mac for this applications graphics. We call the array qdglob which stands for quick draw global. Next we initialise the fonts with the initfonts call, then out any outstanding i/o operations with flushevents. Flushev vents needs the event to clear in op so putting -1 in op we re sayin ...